﻿using System;
using System.Collections.Generic;
using System.Web;

namespace gvPoco.ChartOptions
{
    /// <summary>
    /// An object with members to configure the placement and size of the chart area 
    /// (where the chart itself is drawn, excluding axis and legends). Two formats 
    /// are supported: a number, or a number followed by %. A simple number is a 
    /// value in pixels; a number followed by % is a percentage. 
    /// Example: chartArea:{left:20,top:0,width:"50%",height:"75%"}
    /// </summary>
    public class ChartArea
    {
        /// <summary>
        /// How far to draw the chart from the left border.
        /// Number or a String.
        /// </summary>
        public dynamic left { get; set; }

        /// <summary>
        /// How far to draw the chart from the top border.
        /// </summary>
        public dynamic top { get; set; }

        /// <summary>
        /// Chart area width.
        /// </summary>
        public dynamic width { get; set; }

        /// <summary>
        /// Chart area height.
        /// </summary>
        public dynamic height { get; set; }

        public ChartArea()
        {
            // Set to null for default initialization on the client-side
            left = "auto";
            top = "auto";
            width = "auto";
            height = "auto";
        }
    }
}